export HASTHI_HOME=`pwd`

source ~/bin/hasthi_config.sh
#HOSTS="tyr12 tyr13 tyr14"
#AGENT_HOSTS="tyr05 tyr03 tyr11 tyr10"

ssh -f tyr12 /u/drlead/deployment/development/management/target/dist-bin/hasthi_node.sh boot

for h in $HOSTS
do
ssh -f $h /u/drlead/deployment/development/management/target/dist-bin/hasthi_node.sh
echo "start node in $h"
done

for h in $AGENT_HOSTS; do
ssh -f $h /u/drlead/deployment/development/management/target/dist-bin/hostagent.sh
echo "Start Host Agent $h"
done

ssh -f tyr12 /u/drlead/deployment/development/management-addon/lead-proxy.sh
#sleep 10s
#ssh tyr12 'cd $HASTHI_HOME && nohup $HASTHI_HOME/mngenode.sh $HASTHI_HOME/hasthi.properties  $HASTHI_HOME 2>&1>> $HASTHI_HOME/hasthi.log &'
#ssh tyr13 'cd $HASTHI_HOME && nohup $HASTHI_HOME/mngenode.sh $HASTHI_HOME/hasthi.properties  $HASTHI_HOME 2>&1>> $HASTHI_HOME/hasthi.log &'
#ssh tyr14 'cd $HASTHI_HOME && nohup $HASTHI_HOME/mngenode.sh $HASTHI_HOME/hasthi.properties  $HASTHI_HOME 2>&1>> $HASTHI_HOME/hasthi.log &'
